static const q31_t in_com1[300] = {
    0x105553F0, 0xD9F3A4C5, 0x07BF0B25, 0x29C5F709,
    0xDC857ADA, 0xCD8EA20C, 0x17619FE0, 0xD9EE30D0,
    0xEBDF964F, 0xF6C715E8, 0x38377595, 0x51826D27,
    0xDD054DB9, 0xEF771631, 0xFBA0A84E, 0xFFC25F1E,
    0x69600EEF, 0x14E7187C, 0x32E73439, 0xB8BB8D01,
    0xDA277F3D, 0x34719756, 0x38E49F5C, 0x05B5EDFA,
    0xC7705F24, 0xE18CDD85, 0x403B1AB6, 0x1B05D1D7,
    0xE7D9BA26, 0x09B11B1F, 0xFDD44D26, 0xE66974E1,
    0xB8C9E7DF, 0x3B427680, 0xF564BE76, 0x0B46CC32,
    0xF16C1EED, 0x0D7039FD, 0xDD23C1F8, 0xE22D28C8,
    0xF44813DA, 0x2256F470, 0x36876AD1, 0xE28C357A,
    0xA47A44BC, 0x0C2A8A1D, 0x10A17BE7, 0x415F818F,
    0x085EF8F8, 0x232C2F1A, 0x0DE5D885, 0x15DAE18C,
    0x0944A676, 0x26E1FE1D, 0x19E104A7, 0xF29E2D4E,
    0xF32B45C8, 0x1BF80AAD, 0x1193EA80, 0xE9775702,
    0xD1F5B9DF, 0xEE1751E5, 0xF664359E, 0xF8EE345C,
    0x05A03A61, 0x0B4113E7, 0xDE5CC858, 0x066A5EB2,
    0xFABCD1DD, 0x1CB03F5E, 0x2968DAC8, 0x018C87CE,
    0xEA139A6F, 0x13D71631, 0x096237B3, 0x1D11EF8F,
    0x143E7149, 0x2DA113F8, 0x0A992F17, 0x1892010E,
    0x29EBA777, 0xF8D3D572, 0xDD8BFFFF, 0x16480349,
    0x0D5192C7, 0x1DD8BD7D, 0xE172CB2B, 0x16E86FF8,
    0xB13535F3, 0xE4E9BDC5, 0x16970E58, 0x0E4A480B,
    0xE4BCC19D, 0xF9CE5500, 0xFDE28232, 0x02F10854,
    0xE757E7B2, 0xF5B849ED, 0xDCC9F4DD, 0x0AFF232B,
    0xFD189C81, 0x00DE6C86, 0xDD073040, 0xF086D944,
    0xCF21F36D, 0x1F46D98D, 0xAC287398, 0x10E92C3A,
    0xA078DA0B, 0x274DC995, 0xB8377C2C, 0x024B5226,
    0x0E29706C, 0xFF8C755B, 0xCCAF89C9, 0x14732334,
    0xDD58C30B, 0x0FDBD32C, 0x11DCE96C, 0xD6612773,
    0xBBEA9D4B, 0xBE66C4DA, 0x0FC46F5A, 0x06DE6857,
    0x2B4D6BCB, 0x9EF977FF, 0xECE0DB5E, 0x21D2AD35,
    0xB281184B, 0x36179A10, 0xEFB5C3AE, 0x35FA3A50,
    0xDBF62A7F, 0x19A9BDAD, 0xFAA5010A, 0x13965608,
    0xB436816E, 0x01B3B2D7, 0x036BD6E3, 0x2644C195,
    0xDF078582, 0x09F96A20, 0x01DD51FB, 0x23865074,
    0xF5C16D8B, 0xE0D63F00, 0x148E0B3D, 0x0DD3FF8B,
    0xC351BDF7, 0x01D1D774, 0x02920EE2, 0x073F8307,
    0x07F4A7BA, 0x0F7C4748, 0xDAE10E5C, 0xEC4C8617,
    0x1ACA84D7, 0xF039868D, 0x11AFACDB, 0xC2D4542E,
    0x118E4DFB, 0xEFF76D4F, 0x2544A4F1, 0xCA53189A,
    0xDFA7A2DD, 0xE19852C3, 0xF865F526, 0xF488F5C1,
    0x03F145B0, 0x0FD78EAE, 0x10AE3B15, 0x0BC5F8D9,
    0xCF83B4D4, 0xC3863FD3, 0xFC39D6B8, 0xF8B68538,
    0x11158FB0, 0xED752748, 0xD56B67B6, 0xF44E6B4C,
    0xD5B8B4E9, 0xF6221769, 0x9AEA8C97, 0xE231ABCC,
    0x0956AD19, 0xF150B15D, 0xF517F4C2, 0x3FC4AC23,
    0x029FB71D, 0xF515DBEF, 0xC4E96624, 0xB4521152,
    0x3A08F60E, 0xD378B68D, 0x1E4DF687, 0x4131066B,
    0x089EF0C8, 0xDC43C079, 0x80000000, 0x57F935F7,
    0x27071DFE, 0xBE618BB4, 0x4C2CBF20, 0x16EAB988,
    0x05D18046, 0xD7D766B4, 0xF3246ECD, 0x277351D1,
    0xA78893E3, 0x0C83303F, 0x130A7B7E, 0xB569F550,
    0xDC92752A, 0x472D0E60, 0x1AB07806, 0x1CA81F83,
    0x092C86A6, 0x0513D899, 0xF5E7ED8C, 0xEEC535A1,
    0xFCBF2580, 0xD1CAB376, 0xFA4B6349, 0x01A28088,
    0x0042B918, 0x01C57BAA, 0x33917574, 0xB9BB376C,
    0xEEBD0C3B, 0xFEFE98CD, 0x1214367B, 0xFF88D222,
    0xE6F00D4C, 0x2EA7E225, 0x0D2384A8, 0x1884F28B,
    0x4AF2890C, 0x297580EA, 0x32EEE4B7, 0x2F834D01,
    0x2E18663C, 0x32E376AC, 0x1FCF1592, 0x18BEB7A2,
    0x2A2F0231, 0x1B4824AC, 0xFF065D68, 0xEDD5A4DD,
    0x0123A5D2, 0xFFEFD467, 0xFFC72B57, 0x0C337CCB,
    0x182D3CB1, 0x096C2D2F, 0xC2B6AE7F, 0xE0B4E2A6,
    0xF7D49BCA, 0x22EA389A, 0x36CD0930, 0x09CCD104,
    0x1186385B, 0xE84E2E79, 0x03D368C8, 0xF19DC041,
    0x12C87D66, 0x24142749, 0x0F4F51D5, 0xD31A2447,
    0xE19BB717, 0x0CC3D651, 0xF9474FBC, 0x1027D5ED,
    0xE6B17E61, 0xD322A283, 0x21B3B534, 0xDCB73C07,
    0x06F14AD1, 0x1D6B7317, 0x021067E9, 0xF8BDC8E8,
    0xE642813E, 0x223221D2, 0x19079E27, 0xFF2F4A4F,
    0x0EAD1F77, 0x3F3444F9, 0x1A08BBEB, 0xF95210CC,
    0x5BD1E476, 0x157228CA, 0xE5C34518, 0xC52EA048,
    0xDD8BAA6E, 0xCC6D9FA2, 0x0A8F1E94, 0x21E53E5C,
    0x235D7B47, 0xD0380C1A, 0x144F0C3E, 0xF05BDF4F
    };

static const q31_t in_com2[300] = {
    0x105553F0, 0x260C5B3B, 0x07BF0B25, 0x29C5F709,
    0x237A8526, 0x32715DF4, 0x17619FE0, 0x2611CF30,
    0x142069B1, 0x0938EA18, 0x38377595, 0x51826D27,
    0x22FAB247, 0x1088E9CF, 0x045F57B2, 0x003DA0E2,
    0x69600EEF, 0x14E7187C, 0x32E73439, 0x474472FF,
    0x25D880C3, 0x34719756, 0x38E49F5C, 0x05B5EDFA,
    0x388FA0DC, 0x1E73227B, 0x403B1AB6, 0x1B05D1D7,
    0x182645DA, 0x09B11B1F, 0x022BB2DA, 0x19968B1F,
    0x47361821, 0x3B427680, 0x0A9B418A, 0x0B46CC32,
    0x0E93E113, 0x0D7039FD, 0x22DC3E08, 0x1DD2D738,
    0x0BB7EC26, 0x2256F470, 0x36876AD1, 0x1D73CA86,
    0x5B85BB44, 0x0C2A8A1D, 0x10A17BE7, 0x415F818F,
    0x085EF8F8, 0x232C2F1A, 0x0DE5D885, 0x15DAE18C,
    0x0944A676, 0x26E1FE1D, 0x19E104A7, 0x0D61D2B2,
    0x0CD4BA38, 0x1BF80AAD, 0x1193EA80, 0x1688A8FE,
    0x2E0A4621, 0x11E8AE1B, 0x099BCA62, 0x0711CBA4,
    0x05A03A61, 0x0B4113E7, 0x21A337A8, 0x066A5EB2,
    0x05432E23, 0x1CB03F5E, 0x2968DAC8, 0x018C87CE,
    0x15EC6591, 0x13D71631, 0x096237B3, 0x1D11EF8F,
    0x143E7149, 0x2DA113F8, 0x0A992F17, 0x1892010E,
    0x29EBA777, 0x072C2A8E, 0x22740001, 0x16480349,
    0x0D5192C7, 0x1DD8BD7D, 0x1E8D34D5, 0x16E86FF8,
    0x4ECACA0D, 0x1B16423B, 0x16970E58, 0x0E4A480B,
    0x1B433E63, 0x0631AB00, 0x021D7DCE, 0x02F10854,
    0x18A8184E, 0x0A47B613, 0x23360B23, 0x0AFF232B,
    0x02E7637F, 0x00DE6C86, 0x22F8CFC0, 0x0F7926BC,
    0x30DE0C93, 0x1F46D98D, 0x53D78C68, 0x10E92C3A,
    0x5F8725F5, 0x274DC995, 0x47C883D4, 0x024B5226,
    0x0E29706C, 0x00738AA5, 0x33507637, 0x14732334,
    0x22A73CF5, 0x0FDBD32C, 0x11DCE96C, 0x299ED88D,
    0x441562B5, 0x41993B26, 0x0FC46F5A, 0x06DE6857,
    0x2B4D6BCB, 0x61068801, 0x131F24A2, 0x21D2AD35,
    0x4D7EE7B5, 0x36179A10, 0x104A3C52, 0x35FA3A50,
    0x2409D581, 0x19A9BDAD, 0x055AFEF6, 0x13965608,
    0x4BC97E92, 0x01B3B2D7, 0x036BD6E3, 0x2644C195,
    0x20F87A7E, 0x09F96A20, 0x01DD51FB, 0x23865074,
    0x0A3E9275, 0x1F29C100, 0x148E0B3D, 0x0DD3FF8B,
    0x3CAE4209, 0x01D1D774, 0x02920EE2, 0x073F8307,
    0x07F4A7BA, 0x0F7C4748, 0x251EF1A4, 0x13B379E9,
    0x1ACA84D7, 0x0FC67973, 0x11AFACDB, 0x3D2BABD2,
    0x118E4DFB, 0x100892B1, 0x2544A4F1, 0x35ACE766,
    0x20585D23, 0x1E67AD3D, 0x079A0ADA, 0x0B770A3F,
    0x03F145B0, 0x0FD78EAE, 0x10AE3B15, 0x0BC5F8D9,
    0x307C4B2C, 0x3C79C02D, 0x03C62948, 0x07497AC8,
    0x11158FB0, 0x128AD8B8, 0x2A94984A, 0x0BB194B4,
    0x2A474B17, 0x09DDE897, 0x65157369, 0x1DCE5434,
    0x0956AD19, 0x0EAF4EA3, 0x0AE80B3E, 0x3FC4AC23,
    0x029FB71D, 0x0AEA2411, 0x3B1699DC, 0x4BADEEAE,
    0x3A08F60E, 0x2C874973, 0x1E4DF687, 0x4131066B,
    0x089EF0C8, 0x23BC3F87, 0x7FFFFFFF, 0x57F935F7,
    0x27071DFE, 0x419E744C, 0x4C2CBF20, 0x16EAB988,
    0x05D18046, 0x2828994C, 0x0CDB9133, 0x277351D1,
    0x58776C1D, 0x0C83303F, 0x130A7B7E, 0x4A960AB0,
    0x236D8AD6, 0x472D0E60, 0x1AB07806, 0x1CA81F83,
    0x092C86A6, 0x0513D899, 0x0A181274, 0x113ACA5F,
    0x0340DA80, 0x2E354C8A, 0x05B49CB7, 0x01A28088,
    0x0042B918, 0x01C57BAA, 0x33917574, 0x4644C894,
    0x1142F3C5, 0x01016733, 0x1214367B, 0x00772DDE,
    0x190FF2B4, 0x2EA7E225, 0x0D2384A8, 0x1884F28B,
    0x4AF2890C, 0x297580EA, 0x32EEE4B7, 0x2F834D01,
    0x2E18663C, 0x32E376AC, 0x1FCF1592, 0x18BEB7A2,
    0x2A2F0231, 0x1B4824AC, 0x00F9A298, 0x122A5B23,
    0x0123A5D2, 0x00102B99, 0x0038D4A9, 0x0C337CCB,
    0x182D3CB1, 0x096C2D2F, 0x3D495181, 0x1F4B1D5A,
    0x082B6436, 0x22EA389A, 0x36CD0930, 0x09CCD104,
    0x1186385B, 0x17B1D187, 0x03D368C8, 0x0E623FBF,
    0x12C87D66, 0x24142749, 0x0F4F51D5, 0x2CE5DBB9,
    0x1E6448E9, 0x0CC3D651, 0x06B8B044, 0x1027D5ED,
    0x194E819F, 0x2CDD5D7D, 0x21B3B534, 0x2348C3F9,
    0x06F14AD1, 0x1D6B7317, 0x021067E9, 0x07423718,
    0x19BD7EC2, 0x223221D2, 0x19079E27, 0x00D0B5B1,
    0x0EAD1F77, 0x3F3444F9, 0x1A08BBEB, 0x06ADEF34,
    0x5BD1E476, 0x157228CA, 0x1A3CBAE8, 0x3AD15FB8,
    0x22745592, 0x3392605E, 0x0A8F1E94, 0x21E53E5C,
    0x235D7B47, 0x2FC7F3E6, 0x144F0C3E, 0x0FA420B1
    };

static const q31_t in_absminmax[300] = {
    0xD91BCEBD, 0x62CE1E33, 0xEB33E43B, 0x0CE373F6,
    0x04B6B41E, 0xDBF8B862, 0x300B2AA8, 0xCA164320,
    0x3126FD7F, 0xCCF50F82, 0x2D1FDF30, 0xC9EEFA52,
    0x050BFB42, 0x0F977F71, 0xE8E7014B, 0x36369352,
    0x07F47FFE, 0xCC1E2A28, 0xAA7A89C1, 0x6057DF08,
    0xBF729F27, 0x3D969DDC, 0xFE0CE4CF, 0xE7943556,
    0xD0280B07, 0x13DC155D, 0xE3A4E66C, 0x1228EA7E,
    0x084FAB71, 0x3A74453F, 0xBE837359, 0x3C48FCA7,
    0x4D4495F4, 0x010CBCC0, 0xEA9BEB7B, 0xD507960A,
    0x156420D7, 0xDC660428, 0xCD227C15, 0x091428EF,
    0x743F1EB7, 0xDF38E217, 0xE25645DF, 0xC5555C63,
    0x35E08AC3, 0xB2052092, 0x3671677B, 0x19F6EA02,
    0xDA57AC82, 0x3288AB45, 0xF6B43DFC, 0x40580DD2,
    0xE27E4925, 0xD14AF3E0, 0x3D86B16E, 0x3C064F65,
    0xFF2EAF77, 0xA712EBF1, 0x9E7183A9, 0x293AB09F,
    0x1520BF67, 0x2C9336DD, 0xF501B837, 0x5A414FD6,
    0x0FFA2E7E, 0xD88CC4FF, 0x3CFA8F9C, 0x3C0F7EC1,
    0xC47D45F2, 0xE7AFFD1E, 0x00E49F4A, 0xD1150671,
    0x12CD4609, 0xE8D8E257, 0x330FFE7E, 0x023F0D80,
    0x0A615AA0, 0x0D9FC9AE, 0xE8BAC301, 0xC52A84C2,
    0xFB166F3B, 0xF3D773AD, 0x145A3253, 0xFD074131,
    0xEC9A00A1, 0x1FA4EAF5, 0x259ABB05, 0xCE3E2E74,
    0x2421D36F, 0x24B2F703, 0x3AEDBE9F, 0xB7CC078B,
    0x420ABEB8, 0x22C2EBBD, 0xEEE6B78F, 0x476063BC,
    0xE8A99B12, 0xE257DC6A, 0x0C05D1BA, 0x34CECDDC,
    0x249FB308, 0x10CA1DC0, 0x49194AC8, 0xCCD332D9,
    0x2BCCF239, 0xC6BA0C29, 0xFC825185, 0x0FBBD385,
    0xF0709940, 0x383D713A, 0xC85D722F, 0xBBD501AD,
    0x80000000, 0xE91D9859, 0xE3924A8D, 0xBEB83E7E,
    0x0B1A20C4, 0xBDB28F6B, 0xED165AB3, 0xC9463F5F,
    0x0EA223CD, 0x042CC48A, 0x1463A642, 0x22371902,
    0xFCCEA5D7, 0xE33BC127, 0xDAEB4AA6, 0x49A78B23,
    0x2606AF14, 0xCC592CD4, 0x221EE022, 0x06607C55,
    0x30809757, 0xC41AE0F6, 0xF0512289, 0x140C89A7,
    0x48D49C0D, 0xF3FF4EAE, 0x05F6963E, 0x3169AC36,
    0x0AE1615A, 0xE0FFA685, 0x1ABFDBF8, 0xD656427E,
    0xBCD5F0AA, 0x0D560B62, 0x4A1EDC5B, 0xFA6DDFEF,
    0x301BB2BB, 0xC43023A9, 0xF950E33D, 0xE993E290,
    0x4C93882F, 0xE2B1C911, 0xF508F85D, 0xF5D14379,
    0x0EA13DC2, 0x0CBEE8FE, 0xD538AEDB, 0x17FCEE49,
    0xEC8F81DB, 0xEBE5677B, 0x350EA4CB, 0xDA8ED01E,
    0xBB3D8C03, 0x0C6AAAF6, 0xD94AFAF5, 0xC83F040C,
    0x50418783, 0xDF9E3CBC, 0x128132DA, 0x04585B19,
    0xD401C744, 0xE3519D6B, 0x1942152F, 0x069E6FB0,
    0xEE543768, 0xFA6E1E38, 0x558AEB12, 0x108ADC6F,
    0xF57ECD2D, 0x3B8AE964, 0xDE23EAC6, 0x079A113C,
    0x28EA8B9A, 0x14CCFFFC, 0xFC7F0E78, 0x03601BA5,
    0x1A32160C, 0x3AEE02BB, 0xC06E3824, 0x017F0E8D,
    0xCC5D5DB0, 0x1E7D5AEA, 0xFC19EE2A, 0xD5401579,
    0xE5B59039, 0xF5FF070F, 0x41D0AE1F, 0x31C605A8,
    0x3E7EE5F8, 0x78869570, 0x8D326DF1, 0x4E5C1A8E,
    0x2558BC01, 0xFF94718D, 0x1FC709C3, 0xDD30B19E,
    0x21E91012, 0x1500BBCD, 0xFA2D33E0, 0x094D7520,
    0x10ED6681, 0x1CC7E18B, 0x02D43336, 0x384253B2,
    0xE7C36635, 0xE22EB06B, 0x2934BB10, 0xE53A4215,
    0xDA932CF2, 0x1B3B16EF, 0x0CB5CC11, 0xF441B97D,
    0xF9D451FB, 0x2DC68CFC, 0xD561A1E1, 0xE25A01B0,
    0x9088FFB0, 0xF1888C4D, 0x29C29496, 0x0B01DAEB,
    0xF186E57F, 0x99831889, 0xC29EF089, 0x06BEE2A1,
    0x198BEB21, 0x52E2E547, 0x12E4AF92, 0x26403572,
    0x141AD6D7, 0xF7CA12BC, 0x0AB08B15, 0xFABDB636,
    0x09CED512, 0x14C4DB14, 0x2A060FEA, 0xF1413BA7,
    0x3D09FEB1, 0x010F2C24, 0xFBD12420, 0xBDB6E8F7,
    0x08A067F2, 0xF4FF15F0, 0xDE436608, 0x0F57E811,
    0xF556A6CD, 0x3F2E54D0, 0xCFB87547, 0x2703720A,
    0x21F10211, 0x617338A3, 0xBF71EBA5, 0x06145E9B,
    0x3034940D, 0x2C65E68A, 0x60C81120, 0x10199231,
    0xED8CCF13, 0x14551870, 0x2FDB97E0, 0x252DF482,
    0xDFD8ABD7, 0x00D97AE9, 0x023D9795, 0xEC708325,
    0xD09DA1E3, 0xF790A802, 0x21009225, 0x2ED179C7,
    0x64AF52E4, 0x11BA1569, 0xEF2A9DDE, 0x0BCFFEA8,
    0xFA198840, 0xAB20DAAF, 0x2DE1BB5C, 0x4AD7DBB0,
    0xEE618C62, 0x1DFA0618, 0xB3D77D96, 0x013187EF,
    0x44C313D6, 0xECA29DA9, 0x21A3158D, 0x14B5CD02,
    0x4D5C76DB, 0x03D2417B, 0xEFF94305, 0x18120BD2
    };

static const q31_t ref_max_val[3] = {
    0x105553F0, 0x29C5F709, 0x38377595
    };

static const uint16_t ref_max_idx[3] = {
    0x0000, 0x0003, 0x000A
    };

static const q31_t ref_min_val[3] = {
    0xD9F3A4C5, 0xCD8EA20C, 0xCD8EA20C
    };

static const uint16_t ref_min_idx[3] = {
    0x0001, 0x0005, 0x0005
    };

static const q31_t ref_absmax_val[3] = {
    0x62CE1E33, 0x62CE1E33, 0x62CE1E33
    };

static const uint16_t ref_absmax_idx[3] = {
    0x0001, 0x0001, 0x0001
    };

static const q31_t ref_absmin_val[3] = {
    0x14CC1BC5, 0x04B6B41E, 0x04B6B41E
    };

static const uint16_t ref_absmin_idx[3] = {
    0x0002, 0x0004, 0x0004
    };

static const q31_t ref_mean[4] = {
    0x14B59370, 0x1F68C070, 0x1E9F29E6, 0x1BD8CBD2
    };

static const q63_t ref_power[3] = {
    0x00001BB9CF2ACA8B, 0x0000919A9AA38F86,
    0x0000CAA45F64016E
    };

static const q31_t ref_rms[4] = {
    0x185208C3, 0x22212F2D, 0x2256317F, 0x22E9BED5
    };

static const q31_t ref_std[4] = {
    0x1D3C3F9C, 0x232A4294, 0x23BECAED, 0x22FE315A
    };

static const q31_t ref_var[4] = {
    0x06AD692F, 0x09A92A5D, 0x09FB735D, 0x09910304
    };

